Repository navigation
test(fields): wait for the schema-typed render in the emptyOperators and builderRows FilterConditionField tests - #35063
Merged
objectstack-fleet[bot] merged 1 commit intoNov 18, 2026
Conversation
…and builderRows FilterConditionField tests Both files asserted on schema-dependent state right after a findBy that can resolve before the async `getObjectSchema` answers: an edit to the `amount` box emitted the string "6" (untyped text input), and the field trigger had no label yet. Wait for the typed number box (`spinbutton` role) and for the trigger's label, respectively. Same race and fix shape as the betweenBlankBound file. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzf35CD4CvA4nKbwwUn L1: ACCEPT This is the first L1 read of #35063 at the head above. It is the second PR on card #34991 and follows #35055 (my ACCEPT 6965205817). The head merges cleanly with current main. Must-fixNone. Should-fixNone. Notes
|
This was referenced Nov 18, 2026
Contributor
Author
|
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz Landing · 2026-11-18T01:51Z
Open findings: none. Reproduction (schema 300 ms late): emptyOperators-10790 base 6 failed / 36 → 36 / 36; builderRows-8748 base 1 failed / 4 → 4 / 4. Queued behind #35055 ( State: ready + auto-merge armed by area o3-D (lease Dev-effort: medium · Rounds: 1 (second PR on the card) |
objectstack-fleet
Bot
deleted the
claude/issue-34991-filter-sibling-races
branch
November 18, 2026 02:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WGufzi3ezPzTysQPDEjmVz
Fixes #34991
repo:objectstack#3 · os-support-ai · session_01WGufzi3ezPzTysQPDEjmVz
Clause-②: no
Metadata-protocol: none
维护者速读
FilterConditionField.emptyOperators-10790与FilterConditionField.builderRows-8748),让断言等到 schema 返回后的带类型渲染再执行。接续 test(fields): wait for the schema-typed range bound before asserting its number value #35055(同一张卡的第一个 PR,修了 betweenBlankBound 文件)。getObjectSchema返回才生效。原测试findBy拿到第一次渲染就断言:数字框还是文本框时编辑会发出字符串 "6",字段下拉还没有标签 "Name"。慢机上与 schema 赛跑,和 test(fields): wait for the schema-typed range bound before asserting its number value #35055 是同一个队列误踢根因。FilterConditionField.emptyOperators-10790.test.tsx的findTypedAmountBox;FilterConditionField.builderRows-8748.test.tsx的waitFor标签等待。getObjectSchema改为延迟 300ms 返回再跑该文件,预期全部通过(修复前 emptyOperators 红 6 个、builderRows 红 1 个)。What changes
Follows #35055, which fixed the same render race in
FilterConditionField.betweenBlankBound-9914.test.tsxand lands asPart of #34991. That PR's 300 ms schema-delay reproduction found two sibling files with the same race; this PR fixes them and closes the card.FilterConditionField.emptyOperators-10790.test.tsx: threefindByDisplayValue('5')sites (the four RE-SAVE cases and the two OR-group cases) are replaced byfindTypedAmountBox(), which waits for the typed number box (findByRole('spinbutton')) and assertstoHaveValue(5)before the edit. The emitted"amount":6assertions are unchanged; the string"6"is not accepted.FilterConditionField.builderRows-8748.test.tsx: the seeded-row test waits for the field trigger to read its label (waitForontoHaveTextContent('Name')) before taking the triggers. A combobox takes no accessible name from its content, sofindByRole('combobox', { name: 'Name' })cannot spell it (measured: it fails even with no delay).No skip, retry or quarantine. Test-only, so no changeset (
skip-changeset).Tests
Reproduction: schema resolution delayed 300 ms, before and after, per file
Each mutation was applied by
scripts/ablation-replace.mjs(anchorgetObjectSchema: async () => OBJECT_SCHEMA,hit once) and restored to the HEAD blob withgit diff HEADempty. Leg A uses the file as on base 743308b; leg B uses 52bace8.Neighbours and package at 52bace8
FilterConditionField*files:Test Files 6 passed (6),Tests 128 passed (128).@object-ui/fieldspackage (run under os-verify-lock):Test Files 307 passed | 1 skipped (308),Tests 4651 passed | 7 skipped (4658), VERDICT command-exit 0.Acceptance notes
Type Check UI,Test UI).Verification
Derived gate families (dispatch-gates --commands, 27 commands)
All 27 commands exit 0 at 52bace8, including
pnpm --dir ui exec vitest run scripts/:Test Files 171 passed | 2 skipped (173),Tests 5077 passed | 2 skipped (5079).dispatch-gates --ran: 27 derived, 27 run, 0 NOT-MEASURED, a derived zero. overlap-check: VERDICT clean exit 0.Generated by Claude Code
Governing claim for this branch: 6965814231 on #34991.